package user

import (
	"center-platform/internal/event"
	"fmt"
)

type userEvent struct {
	register       *register
	privateMessage *privateMessage
}

type register struct {
}

type privateMessage struct {
}

func (r *register) HandleFunc(data interface{}) {
	fmt.Println("用户注册事件:", data)
}

func (r *privateMessage) HandleFunc(data interface{}) {
	fmt.Println("收到私信:", data)
}
func GetEventListener() map[string][]event.Listener {
	userEvent := &userEvent{
		register:       &register{},
		privateMessage: &privateMessage{},
	}
	return map[string][]event.Listener{
		"user_register":        {userEvent.register},
		"user_private_message": {userEvent.privateMessage},
	}
}
